Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

plumbing: object, Fix tag message decoding #1118

Merged
merged 2 commits into from
Apr 20, 2019
Merged

Conversation

filipnavara
Copy link
Contributor

PR #1104 + test. Fixes #1111

The Decode method was adding one too many newlines to the tag message, causing signature verification to fail. This is because in signed tags produced by git, there is a newline after the PGP signature block, resulting in messageAndSig having one extra (empty) []byte element. This caused t.Message to receive one extra newline.

scjudd and others added 2 commits April 20, 2019 20:45
The Decode method was adding one too many newlines to the tag message,
causing signature verification to fail. This is because in signed tags
produced by `git`, there is a newline after the PGP signature block,
resulting in `messageAndSig` having one extra (empty) `[]byte` element.
This caused `t.Message` to receive one extra newline.

Signed-off-by: Spencer Judd <spencercjudd@gmail.com>
…fter signature

Signed-off-by: Filip Navara <navara@emclient.com>
@mcuadros mcuadros merged commit e5268e9 into src-d:master Apr 20, 2019
@filipnavara filipnavara deleted the fix1104 branch April 21, 2019 05:10
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message on signed tagged commits contains extra new line
3 participants